﻿using Day13.IService;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Data;

namespace Day13.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class DatasController : ControllerBase
    {
        IDataService service;

        public DatasController(IDataService service)
        {
            this.service = service;
        }
        [HttpGet]
        public dynamic Show(string? DatasNo, string? Name)
        {
            var list = service.Show(DatasNo, Name);
            return list;
        }
    }
}
